package org.jeecg.modules.scm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.scm.entity.ScmCloudChain;
import org.jeecg.modules.scm.entity.ScmFinaContract;

import java.util.List;

/**
 * @Description: scm_cloud_chain
 * @Author: jeecg-boot
 * @Date: 2021-11-04
 * @Version: V1.0
 */
public interface IScmCloudChainService extends IService<ScmCloudChain> {

    /**
     * 应收账款上链
     *
     * @param receivablesId 应收账款ID
     * @return
     */
    String onBlockchain(Integer receivablesId);

    /**
     * 通过id查询融资情况
     *
     * @param id
     * @return
     */
    ScmFinaContract queryFinaContractById(String id);

    /**
     * @title
     * @description
     * @author Zhou Ruiji
     * @updateTime 2021/12/8 9:29
     * @throws
     */
    List<ScmCloudChain> queryByReceivables(Integer receivablesId);

}
